with open('learning_python.txt.py') as file_object:
    contents = file_object.read()
    print(contents)


filename = 'learning_python.txt.py'
with open(filename) as file_object:
    contents = file_object.read()
    print(contents)